package com.zjut.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("tb_questions")
public class Questions implements Comparable<Questions> {
    private Integer id;
    private String question;
    private String answer;
    private String type;
    private Double difficulty;
    private Integer chapter;
    private Integer section;
    private Boolean status;
    private Integer year;
    @Override
    public int compareTo(Questions other) {
        return Double.compare(this.difficulty, other.difficulty);
    }
}
